<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>测试</title>
</head>
<body>
<!--code把代码以文本的样式呈现出来-->
<div id="code"></div>
<!--show将css以html形式渲染出来-->
<style id="show"></style>
<div id="buttons">
    <button id="btnPause">暂停</button>
    <button id="btnPlay">继续</button>
    <button id="btnFast">加速</button>
    <button id="btnNormal">常速</button>
    <button id="btnSlow">慢速</button>
    <a href="http://zhangxq7313.gitee.io/jigglypuff-step/src/index.html"><button id="turn">直接查看最终成果</button></a>
</div>
<style>
    * {
        box-sizing: border-box;
    }

    #html {
        background-image: url("https://uploadfile.huiyi8.com/2014/0605/20140605042010263.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        position: fixed;
        /*background: lightcoral;*/
        width: 100%;
        height: 60vh;
        bottom: 0;
        left: 0;
    }
    #code {
        position: fixed;
        /*background: lightblue;*/
        font-size: 12px;
        top: 0;
        left: 0;
        width: 100%;
        height: 40vh;
        overflow: hidden;
        border: 1px solid;
    }

    #show {
        /*background: pink;*/
        display: none;
    }

    #buttons {
        position: fixed;
        right: 0;
        top: 0;
        z-index:10;
        display: flex;
        flex-direction: column;
    }
    button {
        padding: 6px;
        margin: 5px;
        background: #fff;
        border-radius: 10px;
    }
</style>
<div id="html">
    <div class="container">
        <div class="left-ear">
            <div class="left-ear-fill"></div>
        </div>
        <div class="right-ear">
            <div class="right-ear-fill"></div>
        </div>
        <div class="hair"></div>
        <div class="puff-body">
            <div class="puff-face">
                <div class="left-eye">
                    <div class="left-eye-pupil"></div>
                </div>
                <div class="right-eye">
                    <div class="right-eye-pupil"></div>
                </div>
                <div class="mouth">
                    <div class="mouth-lip">
                        <div class="mouth-tongue"></div>
                    </div>
                </div>

            </div>
            <div class="limbs">
                <div class="left-hand"></div>
                <div class="right-hand"></div>
                <div class="left-foot"></div>
                <div class="right-foot"></div>
            </div>
        </div>
        <div class="microphone">
            <div class="microphone-head"></div>
            <div class="microphone-handle"></div>
        </div>
    </div>
</div>
<script type="module" src="step.js"></script>
</body>
</html>